package com.zycfc.zsf.boot.job.common;

import com.zycfc.zsf.boot.exception.*;

public enum JobExceptionCode implements IExceptionCode
{
    JOB0001("JOB0001", "\u91cd\u590d\u6267\u884c\uff0c\u5e42\u7b49\u62e6\u622a\u6210\u529f");
    
    private final String value;
    private final String message;
    
    private JobExceptionCode(final String value, final String message) {
        this.value = value;
        this.message = message;
    }
    
    public static JobExceptionCode getValue(final int value) {
        return getValue(String.valueOf(value));
    }
    
    public static JobExceptionCode getValue(final String value) {
        if (null == value) {
            return null;
        }
        for (final JobExceptionCode item : values()) {
            if (value.equals(item.value)) {
                return item;
            }
        }
        return null;
    }
    
    public String getValue() {
        return this.value;
    }
    
    public String getMessage() {
        return this.message;
    }
}
